import { _decorator, Component, Node } from 'cc';
import { DialogViewManager } from '../managers/DialogViewManager';
import { DialogViewID } from '../components/DialogViewID';
const { ccclass, property } = _decorator;

@ccclass('Hall')
export class Hall extends Component {
    start() {
        DialogViewManager.instance.openDialog(DialogViewID.bag);
    }

    update(deltaTime: number) {
        
    }
    private click(e,data:string):void{
        switch(data)
        {
            case "bag":
                DialogViewManager.instance.openDialog(DialogViewID.bedroom);
            break;

            case "rank":
                DialogViewManager.instance.openDialog(DialogViewID.rank);
            break;

            case "user":
                DialogViewManager.instance.openDialog(DialogViewID.tips);
            break;

        }
       
    }
}


